package com.ayoka.bean;

import com.ayoka.R;
import com.jcp.baselibrary.utils.UIUtils;

import java.io.Serializable;

/**
 * Created by jinchunping on 2018/5/26.
 */

public class CouponBean implements Serializable {
    public long ID;
    public String Title;
    public String Descp;
    public String ImgUrl;
    public int UsedStatus; //使用状态 0未使用	1已使用 2已过期
    public int CoursePackageID;
    public String ExpiredDate;//过期时间

    public String getUseStatus() {
        if (UsedStatus == 0){
            return UIUtils.getString(R.string.not_yet_use);
        } else if (UsedStatus == 1){
            return UIUtils.getString(R.string.already_used);
        } else if (UsedStatus == 2){
            return UIUtils.getString(R.string.out_of_date);
        }
        return "";
    }
}
